import request from '@/utils/request'

const apiUrl = '/api/personnel-archive'
export function getPersonnelArchivePage(params) {
    return request({
        url: `${apiUrl}/page`,
        method: 'get',
        params
    })
}

export function saveOrUpdateBatchPersonnelArchive(data) {
    return request({
        url: `${apiUrl}/batch`,
        method: 'post',
        data
    })
}

export function getPersonnelArchiveById(id) {
    return request({
        url: `${apiUrl}/${id}`,
        method: 'get'
    })
}

export function deletePersonnelArchive(id) {
    return request({
        url: `${apiUrl}/${id}`,
        method: 'delete'
    })
}

export function batchDeletePersonnelArchive(ids) {
    return request({
        url: `${apiUrl}/batch`,
        method: 'delete',
        data: ids
    })
} 